package com.geekaca.prictic;

import java.util.HashMap;
import java.util.Map;

public class Test01 {
    public static void main(String[] args) {
        String[] provinces = {"黑龙江省","浙江省","江西省","广东省","福建省"};
        String[] cities ={"哈尔滨","杭州","南昌","广州","福州"};

        Map<String,String> capitalMap = new HashMap<>();
        for (int i = 0; i < provinces.length; i++) {
            capitalMap.put(provinces[i],cities[i]);
        }

        System.out.println(capitalMap);
    }
}
